package com.xzd.service.Impl;

import java.util.List;

import com.xzd.dao.PersonDao;
import com.xzd.model.Person;
import com.xzd.service.PersonService;

public class PersonServiceImpl implements PersonService {
	
	private PersonDao personDao;
	
	public PersonDao getPersonDao() {
		return personDao;
	}

	public void setPersonDao(PersonDao personDao) {
		this.personDao = personDao;
	}

	public Person getObjectById(Integer id) {
		return personDao.getObjectById(id);
	}

	public void save(Person obj) {
		personDao.save(obj);
	}

	public List selectAll(String hql) {
		return personDao.selectAll(hql);
	}

	public void update(Person obj) { 
		personDao.update(obj);
	}

	public void delete(Person obj) {
		personDao.delete(obj);
	}

}
